package com.lili.collection.mq.utils;

import java.util.Collection;
import java.util.Map;

/**
 *描述: 自定义封装的集合工具
 *@date: 2023/7/7  20:51
 *@author: lili
 */
public class CollectionUtil {

    public static boolean isEmpty(Collection<?> collection) {
        return collection == null || collection.isEmpty();
    }

    public static boolean isEmpty(Map<?, ?> map) {
        return map == null || map.isEmpty();
    }
}
